list1=[1,2,3,4,5,6,7]
iterator=list1.__iter__()
while True:
    try:
        item=iterator.__next__()
        print(item,end=" ")
    except StopIteration:
        break

print()

dict1 = {
    "name":'lkp',
    "age":18,
    "like":'apple'
}
iterator1=dict1.__iter__()
while True:
    try:
        item=iterator1.__next__()
        print(item,dict1[item])
    except StopIteration:
        break
